import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';
import 'package:finance_app/src/entities/chat_room_member_entity.dart';

class ChatRoomEntity with JsonConvert<ChatRoomEntity> {
  @JSONField(name: "data_type")
  String dataType;
  int id;
  @JSONField(name: "company_id")
  int companyId;
  @JSONField(name: "parent_chat_room_id")
  dynamic parentChatRoomId;
  String type;
  String name;
  @JSONField(name: "current_id")
  int currentId;
  @JSONField(name: "last_read_id")
  int lastReadId;
  @JSONField(name: "created_at")
  String createdAt;
  @JSONField(name: "updated_at")
  String updatedAt;

  List<ChatRoomMemberEntity> members;
}
